<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="./list.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>列表组件测试页面</title>
</head>

<body>
   
</body>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src='../../js/fontFamily.js'></script>
<script src='../../js/fontStyle.js'></script>
<script src='../../js/fontSize.js'></script>
<script src="./list.js"></script>

<script>
    $(() => {
        // font family
        let list1 = new CreateList();
        list1.show({
            width: '170px', //列表的宽度
            height: '125px', //列表的高度
            list: fontFamily, //渲染的列表
            title: '字体(F):', //标题
            selected: '黑体', //选择项
            container: 'body', //dom结构放置处
            selectHandler: function (e) {
                console.log(e.target.innerHTML);
                return e.target.innerHTML;
            }, //点击后的事件
        });

        // font style
        let list2 = new CreateList();
        list2.show({
            width: '120px', //列表的宽度
            height: '125px', //列表的高度
            list: fontStyle, //渲染的列表
            title: '字形(Y):', //标题
            selected: '斜体', //选择项
            container: 'body', //dom结构放置处
            selectHandler: function (e) {
                console.log(e.target.innerHTML);
                return e.target.innerHTML;
            }, //点击后的事件
        })

        // font size
        let list3 = new CreateList();
        list3.show({
            width: '80px', //列表的宽度
            height: '125px', //列表的高度
            list: fontSize, //渲染的列表
            title: '大小(S):', //标题
            selected: '18', //选择项
            container: 'body', //dom结构放置处
            selectHandler: function (e) {
                console.log(e.target.innerHTML);
                return e.target.innerHTML;
            }, //点击后的事件
        })
    })
</script>

</html>